package app;

import com.utils.ByType;

/**
 * This is for element library
 *
 * @author zhengshuheng
 */
public class LocatorApp {
    private String value;
    private int timout;
    private String locatorName;
    private ByType type;


    public LocatorApp() {
    }

    /**
     * defaut LocatorApp ,use Xpath
     *
     * @param element
     * @author zhengshuheng
     */
    public LocatorApp(String element) {
        this.value = element;
        this.timout = 3;
        this.type = ByType.xpath;
    }

    public LocatorApp(String element, int waitSec) {
        this.timout = waitSec;
        this.value = element;
        this.type = ByType.xpath;
    }

    public LocatorApp(String element, int waitSec, ByType byType) {
        this.timout = waitSec;
        this.value = element;
        this.type = byType;
    }

    public LocatorApp(String element, int waitSec, ByType byType, String locatorName) {
        this.timout = waitSec;
        this.value = element;
        this.type = byType;
        this.locatorName = locatorName;
    }

    public String getElement() {
        return value;
    }

    public int getWaitSec() {
        return timout;
    }

    public ByType getType() {
        return type;
    }

    public void setType(ByType byType) {
        this.type = byType;
    }

    public String getLocalorName() {
        return locatorName;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getTimout() {
        return timout;
    }

    public void setTimout(int timout) {
        this.timout = timout;
    }

    public String getLocatorName() {
        return locatorName;
    }

    public void setLocatorName(String locatorName) {
        this.locatorName = locatorName;
    }
}